package com.leostadyn.stackfarm.timestatistics.presenter;

import com.leostadyn.stackfarm.timestatistics.view.vinterface.BaseView;

public abstract class BasePresenter<T extends BaseView>  {

    protected T mView;

    public void attachView(T view) {
        mView = view;
    }

    public void detachView() {
        mView = null;
    }

    protected boolean isViewAttached() {
        return mView != null;
    }

    public T getView() {
        return mView;
    }


}